{$layout "layout_popup"}

<h3>修改高防产品</h3>

<form class="ui form" data-tea-action="$" data-tea-success="success">
    <csrf-token></csrf-token>
    <input type="hidden" name="packageId" :value="package.id"/>

    <table class="ui table definition selectable">
        <tr>
            <td class="title">所属线路 *</td>
            <td>
                <select class="ui dropdown auto-width" name="networkId" v-model="package.networkId">
                    <option value="0">[选择线路]</option>
                    <option v-for="network in networks" :value="network.id">{{network.name}}</option>
                </select>
            </td>
        </tr>
        <tr>
            <td>防护带宽 *</td>
            <td>
                <div class="ui fields inline">
                    <div class="ui field">
                        <input type="text" name="protectionBandwidthSize" size="4" maxlength="4" v-model="package.protectionBandwidthSize"/>
                    </div>
                    <div class="ui field">
                        <select class="ui dropdown" name="protectionBandwidthUnit" v-model="package.protectionBandwidthUnit">
                            <option v-for="unit in protectionUnitOptions" :value="unit.code">{{unit.name}}</option>
                        </select>
                    </div>
                </div>
                <p class="comment">只作为展示作用。</p>
            </td>
        </tr>
        <tr>
            <td>业务带宽 *</td>
            <td>
                <div class="ui fields inline">
                    <div class="ui field">
                        <input type="text" name="serverBandwidthSize" size="4" maxlength="4" v-model="package.serverBandwidthSize"/>
                    </div>
                    <div class="ui field">
                        <select class="ui dropdown" name="serverBandwidthUnit" v-model="package.serverBandwidthUnit">
                            <option v-for="unit in serverUnitOptions" :value="unit.code">{{unit.name}}</option>
                        </select>
                    </div>
                </div>
                <p class="comment">只作为展示作用。</p>
            </td>
        </tr>
        <tr>
            <td colspan="2"><more-options-indicator></more-options-indicator></td>
        </tr>
        <tbody v-show="moreOptionsVisible">
            <tr>
                <td>启用当前高防产品</td>
                <td>
                    <checkbox name="isOn" v-model="package.isOn"></checkbox>
                </td>
            </tr>
        </tbody>
    </table>

    <submit-btn></submit-btn>
</form>